package com.example.oss.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * (Stock)实体类
 *
 * @author makejava
 * @since 2020-05-09 14:47:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "stock")
@JsonInclude(value= JsonInclude.Include.NON_NULL)
public class Stock extends Model<Stock> {
    private static final long serialVersionUID = 1L;
    
    private Object id;
    /**
    * 名称
    */
    private String name;
    /**
    * 库存
    */
    private Integer count;
    /**
    * 已售
    */
    private Integer sale;
    /**
    * 乐观锁，版本号
    */
    private Integer version;
    
}